package com.psy.counseling.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.psy.counseling.entity.Ask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.psy.counseling.utils.Result;
import com.psy.counseling.vo.AnalysisVO;
import com.psy.counseling.vo.AskVO;
import com.psy.counseling.vo.DeleteVO;
import com.psy.counseling.vo.PageVO;

import java.util.List;

/**
 *
 * @author 陈兴海
 * @since 2022-05-31
 */
public interface AskService extends IService<Ask> {

    Page listAsks(Ask ask, PageVO page);

    List<Ask> getAskRecord(Long id);

    Result deleteAskRecord(DeleteVO deleteVO, Integer flag);

    Result addAsk(Ask ask,Long userId);

    Result<?> addAskTime(AskVO askVO);

    Result suspendAsk(AskVO askVO);

    Result<?> rejectAsk(Long id);

    Result<?> viaAsk(Ask ask);

    Result<?> cancelAsk(Long id);

    Result<?> getStatus(Long id);

    List<AnalysisVO> getAskTeacherInfo(String teacherName);

    Page<Ask> getAskInfo(String userName, String teacherName, Page<Ask> page);
}
